//
//  CZCritismView.swift
//  GZWeibo666
//
//  Created by 许建安 on 15/12/1.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

class CZCritismView: UIView {
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    init(title:String) {
        
        super.init(frame:CGRectZero)
        prepareUI()
        
        
        
    }

    

    private func prepareUI() {
        
        //添加子控件
        addSubview(critismField)
        
        //添加约束
        critismField.translatesAutoresizingMaskIntoConstraints = false
        
        //创造约束对象
        critismField.ff_Fill(self)
        
        
        
        
        
    }
    
    
    
    
    //MARK： - 懒加载
    ///
    private lazy var critismField: UITextField = {
        let textField = UITextField()
        
        textField.backgroundColor = UIColor.brownColor()
//        textField.background = UIImage(named: "J_{4UW@G9NL2GXJQ8A@RS3V")
        
        //提示文字
        textField.placeholder = "分享新鲜时"
        
        //文字颜色
        textField.textColor = UIColor.whiteColor()
        
        //多行
//        textField = 
        
        return textField
        }()

}
